class ResultsController < ApplicationController
  before_action :set_task, only: [:index]
  def index
    @results = @task.results.page(params[:page]).per(10)
  end

  private

  def set_task
    @task = Task.find(params[:id])
  end
end
